<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<jdoc:include type="head" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Gippsland History Audio Services</title>

<link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/favicon.ico" />
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/print-small.css" rel="stylesheet" type="text/css" media="print">
<?php
	if($_COOKIE['highConstrast'] == 'true'):
?>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/VisionAustralia-new.css" rel="stylesheet" type="text/css" media="screen" class="stylesheet-css">
<?php else: ?>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/VisionAustralia.css" rel="stylesheet" type="text/css" media="screen" class="stylesheet-css">
<?php endif; ?>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/VisionAustralia-larger.css" rel="stylesheet" type="text/css"> 
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" rel="stylesheet" type="text/css"> 
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ytp.css">
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/swfobject.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/ytp.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery.js"></script>
<script type="text/javascript">	
var highConstrast = false;

function getHighConstrastCookie()
{	
	highConstrast = readCookie("highConstrast");
	if(highConstrast == null) highConstrast = false;	
}

function switchDefaultHighConstrast()
{
	highConstrast = !highConstrast;
	
	if(highConstrast)
	{
		$("link.stylesheet-css").attr("href","<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/VisionAustralia-new.css");
		createCookie("highConstrast", true, 30);
	}
	else
	{
		$("link.stylesheet-css").attr("href","<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/VisionAustralia.css");	
		eraseCookie("highConstrast");
	}
}

//---copied from http://www.quirksmode.org/js/cookies.html
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}
//---END

$(document).ready(function(){

		
	$("li.change-size").toggle(
		function(event){event.preventDefault();	$("body").addClass("large");}
		,
		function(event){event.preventDefault();	$("body").removeClass("large");}
	);
	$(".global_nav li").hover(
		function(){ $(this).addClass("expand");}
		,		
		function(){ $(this).removeClass("expand");}
		);
	$("li.change-contrast").toggle(
		function(){
			// $("link.stylesheet-css").attr("href","<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/VisionAustralia-new.css");
			switchDefaultHighConstrast();
		}
		,
		function(){
			// $("link.stylesheet-css").attr("href","<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/VisionAustralia.css");
			switchDefaultHighConstrast();
		}
	);
	$("span.print-standard").click(
		function myPrint() {
		 $("link.print-css").attr("href","print-small.css");
		 $('<style media="print"> body {font-size: 14pt;} </style>').appendTo('head'); 
		 window.print();
		}
	);
	$("span.print-large").click(
		function myPrint() {
		 $('<style media="print"> body {font-size: 18pt;} </style>').appendTo('head'); 
		 window.print();
		}
	);

	
});
</script>
</head><body onLoad="javascript:getHighConstrastCookie();">
<!-- =========================Start of Main Wrapper Section========================================== -->
<div id="Main">
	<!-- ================================ Start of Header Section ================================ -->
<div id="TopHeader">
		<h1><a id="Logo" href="index.php">Gippsland History audio services</a></h1>
		<h1 class="print-only"><img alt="Gippsland History audio services" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.gif"></h1>
		<div id="TopLink">
			<ul>
				<!--li><a href="#page-heading">Skip to Content</a></li-->
				<li class="change-size"><a href="#">Change Size</a></li>
				<li class="change-contrast"><a href="#">Change Contrast</a></li>
			</ul>
			<div class="don-mainsite"> <a href="<?php echo $this->baseurl ?>/index.php?option=com_normal&view=login" class="button" ><span>Login here</span></a></div>
			</div>
			
	</div>	
	<!-- ================================ End of Header Section ================================ -->
	<!-- ================================ Start of Top Navigation Section ================================ -->
<?php
	//get current page by checking view parameter value
	$view = JRequest::getVar('view');
	
	if($view)
	{	
		if($view == 'aboutus') $aboutus = true;
		else if($view == 'help') $help = true;
		else if($view == 'contact') $contact = true;
		else if($view == 'normal')
		{
			if(JRequest::getVar('location'))
				$viewAll = true;
			else
				$home = true;
		}
	}
?>	
	<div id="nav">
		<ul class="global_nav">
			<li class="leftnav<?php if($home) echo '-on'; ?>"><a href="<?php echo $this->baseurl ?>">Home</a></li>
			<li class="normalnav<?php if($aboutus) echo '-on'; ?>"><a href="<?php echo $this->baseurl ?>/index.php?option=com_normal&view=aboutus">About us</a></li>
			<li class="normalnav<?php if($viewAll) echo '-on'; ?>"> <a href="<?php echo $this->baseurl ?>/index.php?option=com_normal&view=normal&location=-1&industry=-1&timespan=-1&keywords=">View all audios</a></li>			
			<li class="normalnav<?php if($help) echo '-on'; ?>"><a href="<?php echo $this->baseurl ?>/index.php?option=com_normal&view=help">Help</a></li>
			<li class="rightnav<?php if($contact) echo '-on'; ?>"><a href="<?php echo $this->baseurl ?>/index.php?option=com_normal&view=contact">Contact</a></li>
		</ul>
	</div>
	<!-- ================================ End of Top Navigation Section ================================ -->
	<!-- ================================ Start of Content Area Section ================================ -->
	<div id="mainbg">
		<div class="bg-bottom">
			<div class="bg-top">
				
				<!-- ================================ Start of  Main Content Area ================================ -->
				<div class="main-content">
					<jdoc:include type="message" />
					<jdoc:include type="component" />
				</div>
				<!-- ================================ End of  Main Content Area ================================ -->
				<!-- ================================ Start of Left Sidebar ================================ -->
				<div class="left-menu" align="center">
					<div class="content">
					<h3>Proudly sponsored by:</h3><br/>
                      <p><a href="http://www.visionaustralia.org.au/" target="_new"><img BORDER=0 src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo/va-logo.gif" /></a></p>
					  <br/>                      
					  <p><a href="http://www.vic.gov.au/" target="_new"><img BORDER=0 src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo/vic_gov_logo_takecare_hires.jpg" /></a></p>
  					  <br/>
					  <p><a href="http://www.swin.edu.au/" target="_new"><img BORDER=0 src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo/Swinburne-Logo1.jpg" /></a></p>
					<p align="center"><a href="<?php echo $this->baseurl ?>/index.php?option=com_normal&view=sponsorlinks">View other sponsors</a></p>
					</div>
				</div>
				<!-- ================================ End of Left Sidebar ================================ -->
				<div style="clear: both;"></div>
			</div>
		</div>
	</div>
	<!-- ================================ End of Content Area Section ================================ -->
	<!-- ================================ Start of Footer Area Section ================================ -->
		<div id="footer">
		<div id="socialBookmarks">		

		</div>
		<div class="footerleft"> <a href="<?php echo $this->baseurl ?>/index.php?option=com_normal&view=help">Help</a> <a href="mailto:webmaster@visionaustralia.org.au">Webmaster</a> <a href="<?php echo $this->baseurl ?>/index.php?option=com_normal&view=privacy">Privacy</a> <a href="<?php echo $this->baseurl ?>/index.php?option=com_normal&view=termofuse">Terms of Use</a> <a href="https://secure.visionaustralia.org/visionaustralia/Donate/DonateNow.aspx?utm_source=donatenow&utm_medium=website&utm_campaign=Donate_Now">Donate</a> &copy; 2011 Vision Australia</div>
		<div style="clear: both;"></div>
	</div>
		<!-- ================================ End of Footer Area Section ================================ -->
</div>
<!-- =========================End of Main Wrapper Section========================================== -->
</body></html>